import { createWebHistory, createRouter } from "vue-router";
import home from "../views/home.vue";

const routes = [
  { path: "/", component: home },
  { path: "/base", component: () => import("../views/base.vue") },
];

console.log(window.__MICRO_APP_ENVIRONMENT__, "-0-0-0-");
console.log(window.__MICRO_APP_BASE_ROUTE__, "-0-0-0-");
const router = createRouter({
  history: createWebHistory(window.__MICRO_APP_BASE_ROUTE__ || "/"),
  routes,
});

export default router;
